import "LotroLCD.LotroLCD.UI";

LotroLCDTooltipWindow = class(LotroLCDWindow);
function LotroLCDTooltipWindow:Constructor(settings)
	Turbine.UI.Window.Constructor(self);
	
	-- Associate settings
	self.settings = settings;
	
	self:SetVisible(false);
	self:SetOpacity(self.settings.opacity);
	self:SetBackColorBlendMode(Turbine.UI.BlendMode.Normal);
	self:SetBackColor(Turbine.UI.Color( 0, 0, 0 ));
	self:SetSize(310, 60);
	self.label = Turbine.UI.Label();
	self.label:SetParent(self);
	self.label:SetPosition( 5, 5 );
	self.label:SetSize( 300, 50 );
	self.label:SetFontStyle(Turbine.UI.FontStyle.Outline);
	self.label:SetFont(Turbine.UI.Lotro.Font.Verdana14);
	self.label:SetTextAlignment(Turbine.UI.ContentAlignment.MiddleLeft);
	self:SetZOrder(2);
end

function LotroLCDTooltipWindow:Activate(settings, text)
	self.label:SetText(text);
	if settings.opacity then
		self:SetOpacity(settings.opacity);
	end
	self:SetPosition(settings.x, settings.y);
	self:SetVisible(true);
end
function LotroLCDTooltipWindow:Deactivate( )
	self:SetVisible(false);
end
